x86/mm/shadow: spurious warning when unmapping xenheap pages.
authorTim Deegan <tim@xen.org>
Thu, 28 Mar 2013 10:32:17 +0000 (10:32 +0000)
committerTim Deegan <tim@xen.org>
Thu, 4 Apr 2013 09:14:30 +0000 (10:14 +0100)
commitcfc515dabe91e3d6c690c68c6a669d6d77fb7ac4
treecfa7d4af19d8c04dea9ab7ba00f8645da2386065
parent0d2e673a763bc7c2ddf97fed074eb691d325ecc5
x86/mm/shadow: spurious warning when unmapping xenheap pages.

Xenheap pages will always have an extra typecount, taken in
share_xen_page_with_guest(), which doesn't come from a shadow PTE.
Adjust the warning in sh_remove_all_mappings() to account for it.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Tim Deegan <tim@xen.org>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/shadow/common.c